﻿<%@ Page Title="" Language="C#" MasterPageFile="~/administrator/site.master" AutoEventWireup="true" CodeFile="news.aspx.cs" Inherits="administrator_news" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style>
.hide{display:none;}
.table-format{border: 1px solid gray;}
tr.th{background: url(images/bg-head-grid.gif) repeat-x; height: 26px;}
tr.even{height: 24px; background: gainsboro;}

</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <table>
        <tr><td>Chọn nhóm tin</td><td><asp:DropDownList runat="server" ID="drdnhomtin" 
                AutoPostBack="true" onselectedindexchanged="drdnhomtin_SelectedIndexChanged"/></td></tr>
        <tr><td colspan="2">Xóa<asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="images/folder_closed_delete.png" OnClick="DeleteNews"/></td></tr>
    </table>
      <asp:Label runat="server" ID="lblthongbao" ForeColor="red"></asp:Label>
      <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
              <ProgressTemplate>
<div id="Div1" align="center" valign="middle" runat="server" style="position: absolute;left: 55%;top: 35%;">
                      <asp:Image ID="Image1" runat="server" ImageUrl="images/zme_loading.gif" />
</div>
              </ProgressTemplate>
</asp:UpdateProgress>
    <table class="table-format">
    <tr class="th"><th>Tiêu đề</th><th>Ảnh</th><th class="style3">Tóm tắt</th>
        <th class="style2">Chọn xóa</th><th class="style1">Chọn sửa</th>
    </tr>
    <asp:Repeater runat="server" ID="rptnews" OnItemCommand="UpdateCheck">
        <ItemTemplate>
         <tr><td><asp:Label runat="server" ID="lblid" CssClass="hide" Text='<%#Eval("NewsID") %>'></asp:Label><%#Eval("Title") %></td>
         <td>
            <img src="../images/<%#Eval("Image") %>" width="70" height="70"/>
         </td>
         <td>
            <%#Eval("Quote") %>
         </td>
            <td><asp:CheckBox runat="server" ID="chk"/></td><td><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="images/tick_octagon.png" CommandName="edit"/></td>
            </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
                   <tr><td><asp:Label runat="server" ID="lblid" CssClass="hide" Text='<%#Eval("NewsID") %>'></asp:Label><%#Eval("Title") %></td>
         <td>
            <img src="../images/<%#Eval("Image") %>" width="70" height="70"/>
         </td>
         <td>
            <%#Eval("Quote") %>
         </td>
            <td><asp:CheckBox runat="server" ID="chk"/></td><td><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="images/tick_octagon.png" CommandName="edit"/></td>
            </tr>
        </AlternatingItemTemplate>
    </asp:Repeater>
   </table>
   </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

